<template>
	<view>
		<live-player :src="pushSrc" autoplay @statechange="statechange" @error="error"
			style="width: 300px; height: 225px;" />
		<video id="myVideo" :src="pushSrc" :controls="false" @error="videoErrorCallback" :danmu-list="danmuList" enable-danmu danmu-btn
			controls></video>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// pushSrc: 'rtsp://admin:kytech123@192.168.0.124:554/Streaming/Channels/101'
				pushSrc: 'rtmp://192.168.0.114/live/livestream'
			}
		},
		methods: {
			statechange(e) {
				console.log('live-player code:', e.detail.code)
			},
			error(e) {
				console.error('live-player error:', e.detail.errMsg)
			}
		}
	}
</script>

<style>

</style>
